Optimal. Leaf size=182 \[ -\frac {\sqrt {b+2 c-\sqrt {b^2-4 a c}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {b+2 c-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}}+\frac {\sqrt {b+2 c+\sqrt {b^2-4 a c}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {b+2 c+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 182, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {1261, 713,
1144, 214} \begin {gather*} \frac {\sqrt {\sqrt {b^2-4 a c}+b+2 c} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {\sqrt {b^2-4 a c}+b+2 c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}}-\frac {\sqrt {-\sqrt {b^2-4 a c}+b+2 c} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {-\sqrt {b^2-4 a c}+b+2 c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 713
Rule 1144
Rule 1261
Rubi steps
\begin {align*} \int \frac {x \sqrt {1-x^2}}{a+b x^2+c x^4} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\sqrt {1-x}}{a+b x+c x^2} \, dx,x,x^2\right )\\ &=-\text {Subst}\left (\int \frac {x^2}{a+b+c+(-b-2 c) x^2+c x^4} \, dx,x,\sqrt {1-x^2}\right )\\ &=\frac {1}{2} \left (-1-\frac {b+2 c}{\sqrt {b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{2} (-b-2 c)-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx,x,\sqrt {1-x^2}\right )-\frac {1}{2} \left (1-\frac {b+2 c}{\sqrt {b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{2} (-b-2 c)+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx,x,\sqrt {1-x^2}\right )\\ &=-\frac {\sqrt {b+2 c-\sqrt {b^2-4 a c}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {b+2 c-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}}+\frac {\sqrt {b+2 c+\sqrt {b^2-4 a c}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {b+2 c+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 169, normalized size = 0.93 \begin {gather*} \frac {\sqrt {-b-2 c-\sqrt {b^2-4 a c}} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {-b-2 c-\sqrt {b^2-4 a c}}}\right )-\sqrt {-b-2 c+\sqrt {b^2-4 a c}} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {1-x^2}}{\sqrt {-b-2 c+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b^2-4 a c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(359\) vs.
\(2(143)=286\).
time = 0.13, size = 360, normalized size = 1.98
method | result | size |
default | \(2 a \left (\frac {\left (-2 \sqrt {-4 a c +b^{2}}\, a -b \sqrt {-4 a c +b^{2}}+4 a c -b^{2}\right ) \arctan \left (\frac {\frac {2 a \left (\sqrt {-x^{2}+1}-1\right )^{2}}{x^{2}}+2 \sqrt {-4 a c +b^{2}}+2 a +2 b}{2 \sqrt {4 a c -2 b^{2}-2 \sqrt {-4 a c +b^{2}}\, a -2 b \sqrt {-4 a c +b^{2}}-2 a b}}\right )}{2 a \left (4 a c -b^{2}\right ) \sqrt {4 a c -2 b^{2}-2 \sqrt {-4 a c +b^{2}}\, a -2 b \sqrt {-4 a c +b^{2}}-2 a b}}-\frac {\left (2 \sqrt {-4 a c +b^{2}}\, a +b \sqrt {-4 a c +b^{2}}+4 a c -b^{2}\right ) \arctan \left (\frac {-\frac {2 a \left (\sqrt {-x^{2}+1}-1\right )^{2}}{x^{2}}+2 \sqrt {-4 a c +b^{2}}-2 a -2 b}{2 \sqrt {4 a c -2 b^{2}+2 \sqrt {-4 a c +b^{2}}\, a +2 b \sqrt {-4 a c +b^{2}}-2 a b}}\right )}{2 a \left (4 a c -b^{2}\right ) \sqrt {4 a c -2 b^{2}+2 \sqrt {-4 a c +b^{2}}\, a +2 b \sqrt {-4 a c +b^{2}}-2 a b}}\right )\) | \(360\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 871 vs.
\(2 (143) = 286\).
time = 0.81, size = 871, normalized size = 4.79 \begin {gather*} -\frac {1}{2} \, \sqrt {\frac {1}{2}} \sqrt {\frac {b + 2 \, c - \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (\frac {b x^{2} + \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} + \sqrt {\frac {1}{2}} {\left ({\left (b^{2} - 4 \, a c\right )} x^{2} + \frac {{\left (b^{3} c - 4 \, a b c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}\right )} \sqrt {\frac {b + 2 \, c - \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} - 2 \, \sqrt {-x^{2} + 1} a + 2 \, a}{x^{2}}\right ) + \frac {1}{2} \, \sqrt {\frac {1}{2}} \sqrt {\frac {b + 2 \, c - \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (\frac {b x^{2} + \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} - \sqrt {\frac {1}{2}} {\left ({\left (b^{2} - 4 \, a c\right )} x^{2} + \frac {{\left (b^{3} c - 4 \, a b c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}\right )} \sqrt {\frac {b + 2 \, c - \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} - 2 \, \sqrt {-x^{2} + 1} a + 2 \, a}{x^{2}}\right ) - \frac {1}{2} \, \sqrt {\frac {1}{2}} \sqrt {\frac {b + 2 \, c + \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (\frac {b x^{2} - \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} + \sqrt {\frac {1}{2}} {\left ({\left (b^{2} - 4 \, a c\right )} x^{2} - \frac {{\left (b^{3} c - 4 \, a b c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}\right )} \sqrt {\frac {b + 2 \, c + \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} - 2 \, \sqrt {-x^{2} + 1} a + 2 \, a}{x^{2}}\right ) + \frac {1}{2} \, \sqrt {\frac {1}{2}} \sqrt {\frac {b + 2 \, c + \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (\frac {b x^{2} - \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} - \sqrt {\frac {1}{2}} {\left ({\left (b^{2} - 4 \, a c\right )} x^{2} - \frac {{\left (b^{3} c - 4 \, a b c^{2}\right )} x^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}\right )} \sqrt {\frac {b + 2 \, c + \frac {b^{2} c - 4 \, a c^{2}}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} - 2 \, \sqrt {-x^{2} + 1} a + 2 \, a}{x^{2}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \sqrt {- \left (x - 1\right ) \left (x + 1\right )}}{a + b x^{2} + c x^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 591 vs.
\(2 (143) = 286\).
time = 5.10, size = 591, normalized size = 3.25 \begin {gather*} -\frac {{\left (2 \, b^{2} c^{2} - 8 \, a c^{3} - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} - \sqrt {b^{2} - 4 \, a c} c} b^{2} + 4 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} - \sqrt {b^{2} - 4 \, a c} c} a c - 2 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} - \sqrt {b^{2} - 4 \, a c} c} b c - 5 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} - \sqrt {b^{2} - 4 \, a c} c} c^{2} - 2 \, {\left (b^{2} - 4 \, a c\right )} c^{2}\right )} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} \sqrt {-x^{2} + 1}}{\sqrt {-\frac {b + 2 \, c + \sqrt {{\left (b + 2 \, c\right )}^{2} - 4 \, {\left (a + b + c\right )} c}}{c}}}\right )}{2 \, {\left (b^{4} - 8 \, a b^{2} c + 2 \, b^{3} c + 16 \, a^{2} c^{2} - 8 \, a b c^{2} + 5 \, b^{2} c^{2} - 20 \, a c^{3}\right )} {\left | c \right |}} + \frac {{\left (2 \, b^{2} c^{2} - 8 \, a c^{3} - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} + \sqrt {b^{2} - 4 \, a c} c} b^{2} + 4 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} + \sqrt {b^{2} - 4 \, a c} c} a c - 2 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} + \sqrt {b^{2} - 4 \, a c} c} b c - 5 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {-b c - 2 \, c^{2} + \sqrt {b^{2} - 4 \, a c} c} c^{2} - 2 \, {\left (b^{2} - 4 \, a c\right )} c^{2}\right )} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} \sqrt {-x^{2} + 1}}{\sqrt {-\frac {b + 2 \, c - \sqrt {{\left (b + 2 \, c\right )}^{2} - 4 \, {\left (a + b + c\right )} c}}{c}}}\right )}{2 \, {\left (b^{4} - 8 \, a b^{2} c + 2 \, b^{3} c + 16 \, a^{2} c^{2} - 8 \, a b c^{2} + 5 \, b^{2} c^{2} - 20 \, a c^{3}\right )} {\left | c \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.29, size = 649, normalized size = 3.57 \begin {gather*} \frac {\ln \left (\frac {\frac {\left (x\,\sqrt {-\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}}-1\right )\,1{}\mathrm {i}}{\sqrt {\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}+1}}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\sqrt {-\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}}}\right )\,\left (4\,a\,c+b\,\sqrt {b^2-4\,a\,c}+2\,c\,\sqrt {b^2-4\,a\,c}-b^2\right )}{4\,c\,\sqrt {\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}+1}\,\left (4\,a\,c-b^2\right )}-\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {-\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}}-1\right )\,1{}\mathrm {i}}{\sqrt {\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}+1}}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\sqrt {-\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}}}\right )\,\left (b\,\sqrt {b^2-4\,a\,c}-4\,a\,c+2\,c\,\sqrt {b^2-4\,a\,c}+b^2\right )}{4\,c\,\left (4\,a\,c-b^2\right )\,\sqrt {\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}+1}}+\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {-\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}}+1\right )\,1{}\mathrm {i}}{\sqrt {\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}+1}}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+\sqrt {-\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}}}\right )\,\left (4\,a\,c+b\,\sqrt {b^2-4\,a\,c}+2\,c\,\sqrt {b^2-4\,a\,c}-b^2\right )}{4\,c\,\sqrt {\frac {b-\sqrt {b^2-4\,a\,c}}{2\,c}+1}\,\left (4\,a\,c-b^2\right )}-\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {-\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}}+1\right )\,1{}\mathrm {i}}{\sqrt {\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}+1}}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+\sqrt {-\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}}}\right )\,\left (b\,\sqrt {b^2-4\,a\,c}-4\,a\,c+2\,c\,\sqrt {b^2-4\,a\,c}+b^2\right )}{4\,c\,\left (4\,a\,c-b^2\right )\,\sqrt {\frac {b+\sqrt {b^2-4\,a\,c}}{2\,c}+1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________